package com.youhome.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@ApiModel
@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class District {
    @ApiModelProperty(notes = "地区ID")
    private Long id;

    @ApiModelProperty(notes = "地区名称")
    private String name;

    @ApiModelProperty(notes = "地区父级ID")
    @JsonIgnore
    private Long pid;
}